#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/siginfo.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
	pid_t pid;
	if(argc>1)
		pid=atoi(argv[1]);
	else
	{
		printf("send pid\n");
		return 0;
	}
	union sigval val;
	val.sival_int=100;
	while(1)
	{
		sigqueue(pid, SIGUSR1, val);
		usleep(50*1000);
	}
	return 0;
}
